/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
 * Description: Hmfs-tools io
 */

#ifndef HMFS_COMPARE_IO_H
#define HMFS_COMPARE_IO_H

#include <memory>
#include <string>
#include <sys/types.h>

#include "compare_data.h"
#include "hmfs_fs.h"

namespace OHOS {
namespace Hmfs {

int DevRead(FsData &fsInfo, void *buf, uint64_t offset, uint64_t len);
DevInfo* GetDeviceFd(FsData &fsInfo, uint64_t &offset);
int DevReadDevice(std::string &path, void *buf, uint64_t offset, uint64_t len);

} // namespace Hmfs
} // namespace OHOS
#endif
